<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
        *{
            margin: 0;
            padding: 0;
            border: 0;
        }
        .index_left{
            float: left;
            width:20%;
            background-color: darkgray;
        }
        .index_left_box{
            width: 100%;
            height:200px;
        }
        .index_left_box a{
            text-decoration: none;
        }
        .index_left_box a h1{
            padding-left: 100px;
            padding-top: 80px;
        }
        .index_right{
            float: left;
            width: 80%;
        }
        .index_right h2{
            font-size:50px;
            text-align: center;
            margin-top: 100px;
        }
        .index_right a span {
            float: left;
            margin-top: 100px;
            text-align: center;
            text-decoration: none;
            width: 25%;
            font-size: 40px;
            color: red;
        }
    </style>
</head>
<body>
  <div class="index">
      <div class="index_left">
          <div class="index_left_box">
              <a href=""><h1>图书列表</h1></a>
          </div>
          <div class="index_left_box">
              <a href=""><h1>搜索图书</h1></a>
          </div>
          <div class="index_left_box">
              <a href=""><h1>个人中心</h1></a>
          </div>
          <div class="index_left_box">
              <a href="/order/cart"><h1>购物车</h1></a>
          </div>
          <div class="index_left_box">
              <a href=""><h1>我的订单</h1></a>
          </div>
          <div class="index_left_box">
              <a href="/"><h1>退出系统</h1></a>
          </div>
      </div>
      <div class="index_right">
          <h2>图书分类</h2>
          <#list category as category>
          <a href="/book/?category=${category.id}"> <span>${category.name} </span></a>
         </#list>
      </div>
  </div>
</body>
</html>